cmake_minimum_required(VERSION 3.12)

set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/third_party/vcpkg/scripts/buildsystems/vcpkg.cmake)
if(WIN32)
set(VCPKG_TARGET_TRIPLET x86-windows-static CACHE STRING "vcpkg triplet")
else()
set(VCPKG_TARGET_TRIPLET x64-linux CACHE STRING "vcpkg triplet")
endif()
project(MyGameRemake)

# if(WIN32)
#     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /source-charset:utf-8")
# endif()

# 设置属性
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CXX_STANDARD 17)
 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin/${PROJECT_ARCH})
 SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin/${PROJECT_ARCH})
 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${PROJECT_ARCH})


add_subdirectory(src/DataAnalyzer)
add_subdirectory(src/game)
